<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8">
	<title>用户列表</title>
</head>

<body>
<button class="btn btn-primary form-control" style="height:50px"><a th:href="'/user/insertPage'">添加用户</a></button>
<table class="table table-striped table-bordered table-hover text-center">
	<thead>
	<tr style="text-align:center">
		<th>Id</th>
		<th>Username</th>
		<th>Password</th>
		<th>操作</th>
	</tr>
	</thead>
	<tbody>
	<tr th:each="users:${users}">
		<td th:text="${users.id}"></td>
		<td th:text="${users.username}"></td>
		<td th:text="${users.password}"></td>
		<td>
			<a class="btn btn-primary" th:href="@{/user/update/{id}(id=${users.id})}">更改</a>
			<a class="btn btn-danger" th:href="@{/user/delete/{id}(id=${users.id})}">删除</a>
		</td>
	</tr>
	</tbody>
</table>
</body>

<style>
    a{
        color:#000000;
    }
    th{
	    text-align: center;
    }
    td{
        width: 100px;
        border: solid blue 1px;
    }
</style>
</html>
